package edu.hitwh.respository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import edu.hitwh.entity.Borrower;

import java.util.*;

@Repository
public interface BorrowerRepository extends JpaRepository<Borrower, Long> {
    Optional<Borrower> findById(long id);
    Optional<Borrower> findByName(String name);
    Optional<Borrower> findByEmail(String email);
}
